Calendar object for VB4 16/32 bit version 1.0

Topics:
	1. How to use
	2. Preparations
	3. Properties
	4. Methods
	5. How to order



1. How to use

   - Add AHCCAL.FRM to your project
   - Add AHCMOD.BAS to your project. Check out the general declaration area
     of ths module for any existing declarations.
   - See the FORM1.FRM on how to connect the calendar to your forms.



2. Preparations

   - In the general declaration area of your main form add the following line:

	Dim Cal As New ahcCalendar

   - In any form, that calls the calendar, add the following line to the
     Sub Form_Unload:

	If Cal.Loaded Then Cal.Terminate

     This makes shure, that the calendar form correctly shuts down before
     it's owner form closes. If you don't use this line, VB could crash!



3. Properties

   AttachControl	(Read/Write)

	-> Optional

	Syntax:	object.AttachControl [= control-object]

	Example: Cal.AttachControl = Combo1

	Positions the calendar under the given object. The controlobject
	must have a hWnd property.


   BorderLeft		(Read/Write)

	-> Optional

	Syntax:	object.BorderLeft [= value]

	Example: Cal.BorderLeft = 500

	Positions the left side of the calendar. Value must be an integer and
	given in twips.


   BorderTop		(Read/Write)

	-> Optional

	Syntax:	object.BorderTop [= value]

	Example: Cal.BorderTop = 500

	Positions the top side of the calendar. Value must be an integer and
	given in twips.


   Loaded		(Read only)	

	-> Optional

	Syntax: object.Loaded

	Example: If Cal.Loaded Then Cal.Terminate

	Checks, if the calendar is loaded. Returns a boolean.


   OutputControl	(Read/Write)

	-> Optional

	Syntax: object.OutputControl [= control-object]

	Example: Cal.OutputControl = Combo1

	When the calendar day changes, the date will be send to the given 
	control. Possible controls are: Text box, combo box, clipboard, ...


   OutputFormat		(Read/Write)

	-> Optional

	Syntax: object.OutputFormat [= Date-Format-String]

	Example: Cal.OutputFormat = "Short Date"

	Tells the calendar, witch date format you want for the output control.
	Default is "Short Date".


   Today		(Read/Write)

	-> Optional

	Syntax: object.Today [= Dateserial]

	Example: Cal.Today = CDate(15.7.1996)

	Returns or sets the current date for the calendar. Default is the 
	system date.



4. Methods

   Initialize

	-> Required

	Syntax: object.Initialize

	Example: Cal.Initialize

	Initializees the calendar. Call this method to display the calendar.



   Terminate

	-> Required

	Syntax: object.Terminate

	Example: Cal.Terminate

	Shuts down the calendar. Must be caled *before* the calling form is
	unloaded.



5. How to order

   The source code files are password protected. After placing your order
   the password will be send to you by E-Mail.

   CompuServe members can GO SWREG and search Compuserve ID: 100601,1404.

   Royalty free distribution when compiled within your application!




AHC AG
Wiedenstrasse 9a
CH-8505 Pfyn
Switzerland
CID: 100601,1404
